<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Minikombajn Pomiarowy: Plik źródłowy /home/arek/Dokumenty/AVRprograms/MKP_3_7/Keyboard.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Wygenerowano przez Doxygen 1.7.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Szukaj');
--></script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Minikombajn Pomiarowy&#160;<span id="projectnumber">1.0</span></div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Strona&#160;główna</span></a></li>
      <li class="current"><a href="files.html"><span>Pliki</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Szukaj" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Lista&#160;plików</span></a></li>
      <li><a href="globals.html"><span>Globalne</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<h1>/home/arek/Dokumenty/AVRprograms/MKP_3_7/Keyboard.h</h1>  </div>
</div>
<div class="contents">
<a href="_keyboard_8h.html">Idź do dokumentacji tego pliku.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/******************************************************************/</span>
<a name="l00009"></a>00009 <span class="keywordtype">void</span> <a class="code" href="_keyboard_8c.html#acc9fbc7f9320b86766328e9292b3c99e" title="Funkcja konfigurujaca wyprowadzenia do obsugi klawiatury.">KeybInit</a>(<span class="keywordtype">void</span>);
<a name="l00010"></a>00010 int16_t <a class="code" href="_keyboard_8c.html#a68ebbd6bb62edb8812342ceeff9c1242" title="Funkcja wygodnej zmiany wartosci zmiennych.">ShiftValue</a>(uint8_t key, int16_t val, <span class="keyword">const</span> int16_t min, <span class="keyword">const</span> int16_t max, uint8_t step, <span class="keyword">const</span> uint8_t key1, <span class="keyword">const</span> uint8_t key2);
<a name="l00011"></a>00011 uint8_t <a class="code" href="_keyboard_8c.html#a75454b58ac89bbcb3ae0aa9577fdf8ad" title="Funkcja zwracajaca kod nacisnietego przycisku.">Keyboard</a>(<span class="keywordtype">void</span>);
<a name="l00012"></a>00012 
<a name="l00013"></a>00013 <span class="comment">//definicje wyprowadzen</span>
<a name="l00014"></a>00014 <span class="preprocessor">#define KEYB_PORT PORTC</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define PORTK1 PORTB</span>
<a name="l00016"></a>00016 <span class="preprocessor"></span><span class="preprocessor">#define PINK1 1</span>
<a name="l00017"></a>00017 <span class="preprocessor"></span><span class="preprocessor">#define PORTK2 PORTK1</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define PINK2 3</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span>
<a name="l00020"></a>00020 <span class="comment">//kody przyciskow</span>
<a name="l00021"></a>00021 <span class="preprocessor">#define P_LEFT     1</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor">#define P_RIGHT   2</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor">#define P_OK        4</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span><span class="preprocessor">#define P_UP        8</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#define P_DOWN   16</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span><span class="preprocessor">#define P_EXIT     32</span>
<a name="l00027"></a>00027 <span class="preprocessor"></span><span class="preprocessor">#define P_DIV      64</span>
<a name="l00028"></a>00028 <span class="preprocessor"></span><span class="preprocessor">#define P_XY       96</span>
<a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor">#define P_TRIG     128</span>
<a name="l00030"></a>00030 <span class="preprocessor"></span><span class="preprocessor">#define P_CURS  160</span>
</pre></div></div>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Pliki</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Funkcje</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Zmienne</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Definicje</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address class="footer"><small>Wygenerowano Fri Dec 30 2011 17:28:02 dla Minikombajn Pomiarowy programem&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
</body>
</html>
